import Vue from 'vue'
import App from './App'
import store from './store'
import router from './router'

// A modern alternative to CSS resets
import 'normalize.css/normalize.css'

// 引入Element Ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 引入百度地图 需要更换ak
import BaiduMap from 'vue-baidu-map'
import '@/styles/index.scss' // global css
import '@/icons' // icon
import '@/permission' // permission control
// import the socket
// when the web start ,it must run ,and always to get call , \
// so there will a message for call

Vue.use(ElementUI)
Vue.use(BaiduMap, {
  ak: 'qRLkF77Zro4oe0sBsMfZH5Y0HghBoMOX'
})

//引入echarts
const echarts = require('echarts')
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false
Vue.prototype.$message = ElementUI.Message
import socket from '@/utils/socket'

Vue.prototype.$socket = socket
// 监听sockets 然后分发信息
import "@/assets/css/animation.css";


new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
